package com.bjpowerndoe.ylb.web.model.param;

import cn.hutool.core.util.IdcardUtil;
import cn.hutool.core.util.StrUtil;
import lombok.Data;

/**
 *
 */
@Data
public class RealnameParam {
    private String name;
    private String idCard;

    public boolean checkData(){
        if(StrUtil.isBlank(name) || name.length() < 2 ){
            return false;
        }

        if(!IdcardUtil.isValidCard(idCard)){
            return false;
        }
        return true;
    }
}
